#!/bin/bash




gnome-terminal --tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py read_serial_new 1 120.304337 36.310352 1.0 1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py sub_uav_pos_virtual 1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py point_cloud_extractor --ros-args -r __ns:=/drone1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py consenses_APF_new 1 --ros-args -r __ns:=/drone1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py traj_server_virtual 1 --ros-args -r __ns:=/drone1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py send_serial_node 1; exec bash"' \
--tab -e 'bash -c "source /opt/ros/humble/setup.bash;export ROS_LOCALHOST_ONLY=1;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py goal_node 1; exec bash"' \



# --tab -e 'bash -c "source /opt/ros/humble/setup.bash;source ~/Lslidar_ROS2_driver-M10P-N10P/install/setup.bash;ros2 launch lslidar_driver lslidar_launch.py; exec bash"' \
# --tab -e 'bash -c "source /opt/ros/humble/setup.bash;ros2 launch octomap_server octomap_mapping.launch.xml cloud_in:=/lslidar_point_cloud; exec bash"' \
# --tab -e 'bash -c "source /opt/ros/humble/setup.bash;ros2 run rviz2 rviz2 -d ~/consensus_apf/slam/Octomap.rviz; exec bash"' \
# --tab -e 'bash -c "source /opt/ros/humble/setup.bash;source ~/consensus_apf/install/setup.bash;ros2 run consensus_APF_py point_cloud_extractor ; exec bash"' \
#--tab -e 'bash -c "source /opt/ros/humble/setup.bash;source ~/consensus/install/setup.bash;ros2 run consensus_APF_py command_sub_node 1; exec bash"' \
